from os import name
from django.conf.urls import url,include
from django.urls.conf import re_path
from apps.order.views import Cart_order,Commit,Alipay_view,Alipay_check,Comment
from apps.order import views

urlpatterns = [
    re_path(r'^commit$',Commit.as_view(),name="commit"), # 提交订单
    re_path(r'^pay$',Alipay_view.as_view(),name="pay"), # 去支付
    re_path(r'^check$',Alipay_check.as_view(),name="check"), # 查询支付结果
    re_path(r'^comment/(\d+)?$',Comment.as_view(),name="comment"), # 订单评价
    re_path(r'^$',Cart_order.as_view(),name="order"),
]
